const { router, setting } = require('../lib/route')
setting((req, res, next, method) => {
  console.log('params=', req.query)
  // 参数都是字符串，注意转换问题
  const data = { title: 'Express-home', method }
  res.send(JSON.stringify(data));
})
module.exports = router;
